public class FourthQuestion {
    public static void main(String[] args) {
        System.out.println("筛取水仙花数");
        for (int i = 100; i <1000 ; i++) {
             int gewei=i%10;
             int shiwei=i/10%10;
             int baiwei = i/100%10;
             if(i==gewei*gewei*gewei+shiwei*shiwei*shiwei+baiwei*baiwei*baiwei){
                 System.out.println(i+"是水仙花数");
             }else {
                 System.out.println(i+"不是水仙花数");
             }

        }
    }
}
